home *** CD-ROM | disk | FTP | other *** search
- From: ashishk@msn.com (Ashish Kolli)
- Subject: Re: Performance: C vs. C++
- Date: 30 Jan 96 05:34:07 -0800
- References: <30F6BAAC.12B5@iastate.edu> <4da9pn$a45@news.bridge.net> <4dnpl2$c8g@classic.iinet.com.au> <3105E9DC.1BE3@enermet.fi> <DLr46y.7rH@txnews.amd.com> <BLUME.96Jan27152610@zayin.cs.princeton.edu>
- Message-ID: <00001a80+00007425@msn.com>
- Path: news.msn.com!msn.com
- Newsgroups: comp.lang.c
- Organization: The Microsoft Network (msn.com)
-
- Hi,
- Other than the fact that virtual functions are slow, I have noticed
- that the overall quality of optimized C code is much better than that
- of optimized C++ code. I guess the constructs and type checking and
- "virtual function" features added by C++ just force the
- compiler/optimizer to be cautious while optimizing the code or maybe
- the system vendors give more importance to C compiler performance
- (since almost all the benchmarks are in C and Fortran).
-
-
- - Ashish
- ashishk@cmu.edu
-